//
//  DestinationSecButtonCollectionCell.m
//  EDPS
//
//  Created by Neil on 15/11/25.
//  Copyright © 2015年 张维扬. All rights reserved.
//

#import "DestinationSecButtonCollectionCell.h"

@implementation DestinationSecButtonCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _postImageView = [[UIImageView alloc]init];
//        _postImageView.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_postImageView];
        
        _titleLable = [[UILabel alloc]init];
        _titleLable.textColor = [UIColor whiteColor];
//        _titleLable.backgroundColor = [UIColor orangeColor];
        [_postImageView addSubview:_titleLable];
        
        _commentLable = [[UILabel alloc]init];
        _commentLable.textColor = [UIColor whiteColor];
        _commentLable.font = [UIFont systemFontOfSize:10];
//        _commentLable.backgroundColor = [UIColor brownColor];
        [_postImageView addSubview:_commentLable];
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _postImageView.frame = self.contentView.frame;
    
    _titleLable.frame = CGRectMake(0, self.contentView.frame.size.height - 60, self.contentView.frame.size.width, 30);
    
    _commentLable.frame = CGRectMake(0, self.contentView.frame.size.height - 30, self.contentView.frame.size.width, 30);
    
}













/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
